package com.hwtx.form;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = {"io.geekidea.boot", "com.hwtx.form"})
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(Application.class, args);

        AppConfig appConfig = context.getBean(AppConfig.class);
        appConfig.registerOrderService();

        OrderService orderService = context.getBean(OrderService.class);
        orderService.invoke();
    }
}